package com.mjh.zhujianju.controller.visit;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.mjh.zhujianju.model.supervise.SupervisionEO;
import com.mjh.zhujianju.service.supervise.SupervisionService;
import com.mjh.zhujianju.util.ApiConstant;
import com.mjh.zhujianju.util.JsonResult;


/***
 * 信件
 *@ClassName: LetterController 
 * @Description 
 * @author wangdong
 * @date 2018年9月16日 下午8:27:24   
 * @version V1.0
 */
@RestController
@RequestMapping("letter")
public class LetterController {

	@Autowired
	private SupervisionService supervisionService;
	
	
	@RequestMapping(value = "getLetterList",method =RequestMethod.GET)
	public ResponseEntity<JsonResult> getLetterList(){
		JsonResult result = new JsonResult();
		List<SupervisionEO> list = supervisionService.getNoStartLetteringList();
		result.setResult(list);
		result.setStatus(ApiConstant.MSG_SUCCESS);
		return ResponseEntity.ok(result);
	}
}
